import request from '@/utils/request'

// 查询附加费用列表
export function listSurcharge(query) {
  return request({
    url: '/system/surcharge/list',
    method: 'get',
    params: query
  })
}

// 查询附加费用详细
export function getSurcharge(id) {
  return request({
    url: '/system/surcharge/' + id,
    method: 'get'
  })
}

// 新增附加费用
export function addSurcharge(data) {
  return request({
    url: '/system/surcharge',
    method: 'post',
    data: data
  })
}

// 修改附加费用
export function updateSurcharge(data) {
  return request({
    url: '/system/surcharge',
    method: 'put',
    data: data
  })
}

// 删除附加费用
export function delSurcharge(id) {
  return request({
    url: '/system/surcharge/' + id,
    method: 'delete'
  })
}
